//登录接口参数ts类型
//请求
export interface loginForm {
  username: string;
  password: string;
}
//响应
interface loginDataType {
  token?: string;
  message?: string;
}
export interface loginResponseData {
  code: number;
  data: loginDataType;
}

//用户信息接口参数ts类型
//响应
interface checkUserType {
  userId: number;
  avatar: string;
  username: string;
  password: string;
  desc: string;
  roles: string[];
  buttons: string[];
  routes: string[];
  token: string;
}
interface userDataType {
  checkUser: checkUserType;
}
export interface userResponseData {
  code: number;
  data: userDataType;
}
